//
//  InstallScene.cpp
//  client
//
//  Created by ming on 2018/12/28.
//
#include "InstallScene.h"
#ifdef USE_GCLOUD
#include "Tencent/InstallLayerDolphin.h"
#elif USE_EMACDN
#include "EMA/InstallLayerEMA.h"
#include "EMA/EmaOverseaSdkApi.hpp"
    #if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
        #include "EMA/PermissionLayer.hpp"
    #endif
#elif USE_PWRD
#include "Pwrd/InstallLayerPwrd.h"
#include "Pwrd/PwrdSdkApi.hpp"
    #if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
    #include "Pwrd/PwrdPermissionLayer.hpp"
    #endif
#else
#include "InstallLayer.h"
#endif



cocos2d::Scene * createInstallScene(){
    // 'scene' is an autorelease object
    auto scene = Scene::create();
#ifdef USE_GCLOUD
    auto layer = InstallLayerDolphin::create();
#elif USE_EMACDN
    auto layer = InstallLayerEMA::create();
#elif USE_PWRD
    auto layer = InstallLayerPwrd::create();
#else
    auto layer = InstallLayer::create();
#endif
    // 'layer' is an autorelease object
    layer->setName("HotFixScene");
    layer->setKeyboardEnabled(true);
    
    // add layer as a child to scene
    scene->addChild(layer, 1);
    
    // return the scene
    return scene;
}
